package tgc.edu.yzy.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import tgc.edu.yzy.custom.CommonService;
import tgc.edu.yzy.entity.EimAdmin;
import tgc.edu.yzy.entity.TradingRecord;
import tgc.edu.yzy.repostory.TradingRecordRepository;
@Service
public class TradingRecordService extends CommonService<TradingRecord, Integer>{
	@Autowired
	private TradingRecordRepository tradao;
	@Transactional
	public Integer getIds() {
		return tradao.getIds();
	}
	public Page<TradingRecord> findByEimadmins(Pageable pageable, EimAdmin id) {
		return tradao.findByEimadmins(pageable,id);
	}

}
